package com.aspose.cells;

import java.util.ArrayList;
import java.util.Iterator;

class zra {
   private WorksheetCollection a;
   private zds b;
   private zqz c;
   private ArrayList d;
   private int e;

   zra(WorksheetCollection var1, int var2) {
      this.a = var1;
      this.c = new zqz(this);
      this.e = var2;
   }

   void a(zra var1) {
      if (var1.d != null) {
         this.d = new ArrayList();
         Iterator var2 = var1.d.iterator();

         while(var2.hasNext()) {
            byte[] var3 = (byte[])var2.next();
            byte[] var4 = new byte[var3.length];
            System.arraycopy(var3, 0, var4, 0, var3.length);
            com.aspose.cells.b.a.a.ze.a(this.d, (Object)var4);
         }
      } else {
         this.d = null;
      }

      if (var1.b != null) {
         this.b = new zds(this);
         this.b.a(var1.b);
      } else {
         this.b = null;
      }

   }

   int a() {
      return this.e;
   }

   zds b() {
      if (this.b == null) {
         this.b = new zds(this);
      }

      return this.b;
   }

   zds c() {
      return this.b;
   }

   zqz d() {
      return this.c;
   }

   zqy a(ShapeCollection var1, zra var2) {
      return this.d().a(var1, var2);
   }

   ArrayList e() {
      if (this.d == null) {
         this.d = new ArrayList();
      }

      return this.d;
   }

   ArrayList f() {
      return this.d;
   }

   int g() {
      int var1 = 8 + this.d().a();
      byte[] var3;
      if (this.d != null && this.d.size() != 0) {
         for(Iterator var2 = this.d.iterator(); var2.hasNext(); var1 += var3.length) {
            var3 = (byte[])var2.next();
         }
      } else {
         var1 += 50;
      }

      return var1;
   }

   long h() {
      long var1 = (long)this.g();
      if (this.b != null && this.b.getCount() != 0) {
         var1 += (this.b.a() & 4294967295L) + 8L;
      }

      return var1;
   }

   int a(byte[] var1) {
      return zasq.a(this, var1);
   }

   WorksheetCollection i() {
      return this.a;
   }
}
